package Lee_code;

public class Lee_649 {
    public String predictPartyVictory(String senate) {
        int len = senate.length();
        char[] in = senate.toCharArray();
        int dire=0, radiant=0;

        while(in[dire]!='D'){
            dire++;
        }

        while(in[radiant]!='R'){
            radiant++;
        }


        for (int i=0; i<len; i++){
            if (in[i]=='R'){
                in[radiant]='0';

            }

            if (in[i]=='D'){
                in[dire]='0';
            }
        }

        return "true;";
    }
}
